package tests

import tests.steps.EndUserSteps
import tests.requirements.Application.LoginTallygram.LoginInApp
import tests.requirements.Application.AnswerinTallygram.AnswerAQuestion

using "thucydides"

thucydides.uses_default_base_url "http://82.200.2.19/people/8655884133087097414"
thucydides.uses_steps_from EndUserSteps
thucydides.tests_story AnswerAQuestion

scenario "Answer a question", {
    given "the registrated user is login in Tallygram", {
        end_user.is_the_opening_page("http://82.200.2.19")
          end_user.connect_sigin("dusia.iwanowa1988@yandex.ru","89087921481")
    }
    when "the end user open your profile page and answer a question", {
      end_user.MyProfilePage().open()
      end_user.answerQuest();
      end_user.explanQuest();
      end_user.buttonSkip();
      end_user.answerQuest2();
      end_user.explanQuest2();


   end_user.connect_sigin()
    }
    then "they should see question 3 ", {
       end_user.should_see_question_3()
    }
}
